package com.skydroid.demo.utils

import kotlin.experimental.xor

object BusinessUtils {

    fun getBCC(data: ByteArray): Byte {
        var temp = data[0]
        for (i in 1 until data.size - 1) {
            temp = temp xor data[i]
        }
        return temp
    }
}